package com.youmingxing.bean.selfinfo;

import org.json.JSONObject;

/**
 * JHS
 *15/9/14
 * 我的加油票
 */
public class MyTicket {

    public int id;
    public String  createtime;
    public String  usefulTime;
    public boolean valid;
    public long valid_second;
    public String invalid_date;

    public MyTicket(JSONObject data) {
        this.id = data.optInt("id");
        this.createtime = data.optString("createtime");
        this.usefulTime = data.optString("usefulTime");
        this.valid = data.optBoolean("valid");
        this.invalid_date = data.optString("invalid_date");
        this.valid_second = data.optLong("valid_second");
    }
}
